FactoryBot.define do
    factory name :product do
        brand_id        {rand(1..5)}
        title           {Faker::Lorem.word.dowcase}
        bytitle         {title.dowcase}
        img             {'p-1.png'}
        content         {Faker::Lorem.sentence(word_count: 10)}
        keywords        {title.dowcase}
        description     {content}
        price           {rand(10..100)}
        old_price       {rand(10..100)}
        status          {1}
        hit             {1}
    end
end